RestrictedApi'de sorun
19.10.2018 - 11:12
Merhaba arkadaslar
@SuppressLint("RestrictedApi") @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater myMenuInflater = getMenuInflater(); myMenuInflater.inflate(R.menu.super_menu, menu); if(menu instanceof MenuBuilder){ MenuBuilder menuBuilder = (MenuBuilder) menu; menuBuilder.setOptionalIconsVisible(true); } MenuItem searchItem = menu.findItem(R.id.action_search); final SearchView searchViewAndroidActionBar = (SearchView) MenuItemCompat.getActionView(searchItem); searchViewAndroidActionBar.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
kullandim. Amma sonda uses or overrides a deprecated API.
Recompile with -Xlint:deprecation for details.
sorunu cikti . Ne yapa bilirim??
17
Görüntülenme
0 Beğeni